package ${package};

/** 
 * @author ExcelUtil Auto Maker
 * 
 * @version 1.0.0
 * 
 * ${explain}
 */
import java.util.List;

import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;

import ${basePackage}.BaseDao;
<#if imports??>
<#list imports as import>
import ${import};
</#list>
</#if>

public class ${className} extends BaseDao {

	private SqlSessionFactory sqlMapper = getSqlMapper();

    @SuppressWarnings("unchecked")
	public List<${beanClass}> select() {
        SqlSession session = sqlMapper.openSession();
        try{
        	List<${beanClass}> list = (List<${beanClass}>)session.selectList("${xmlName}.select");
            return list;
    	}finally{
			session.close();
		}
    }
}